﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace RuneLog.Extensions
{
    static class StringExtensions
    {
        public static bool Matches(this string str, string reg)
        {
            return new Regex(reg).Match(str).Success;
        }
        public static MatchCollection Search(this string str, string reg)
        {
            return new Regex(reg).Matches(str);
        }
    }
}
